<?php
session_start();
ob_start();
global $idMenuMain, $prefix_url, $lg, $FullUrl, $tpl;
$prefix_url = "/";
$FullUrl = "";
// Add Fuction
include("./includes/config.php");
include("./includes/function-new.php");
include ("./includes/va_db.php");
include ("./class/template.php");
//include ("./debug.php");


	// Check $do & $act
    if (isset($_GET['do'])) {
        //echo 'co do'.$_GET['do'];
        $do = CleanSQLInjection(isset($_GET["do"]) ? $_GET["do"] : 'main');
        $act = CleanSQLInjection(isset($_GET["act"]) ? $_GET["act"] : "cover");
		//echo $do;
       
    } else {
        //echo 'khong co do';
		$do = "main";
        $act = "cover";	
    }

	// Main templates
    $file_index = "./templates/templates.php";
    if (file_exists($file_index)) {
        require ($file_index);
    } else {
        //$msg = REDIRECT_MESSAGE;
        $p = '/index.php';
    }
	

?>